﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/DefaultWithLeft.Master"
	AutoEventWireup="true" CodeBehind="NewsPage.aspx.cs" Inherits="ITViet.Web.Pages.NewsPage" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dxdv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContentMain" runat="server">
	<ul class="blog">
		<asp:Repeater ID="rptNews" runat="server" 
			onitemdatabound="rptNews_ItemDataBound">
			<ItemTemplate>
				<li>
					<h4 onclick="gotoLocalPage('NewsDetailPage.aspx?t=N&tid=<%#Eval("CategoryId") %>&id=<%#Eval("Id") %>')">
						<%#Eval("Title") %>
					</h4>
					<p id="pDate" runat="server" class="date">						
					</p>
					<img id="imgPreview" runat="server" alt="" src="" width="128" />
					<p class="post">
						<%#Eval("Summary") %>
					</p>
					<a class="more" href="NewsDetailPage.aspx?t=N&tid=<%#Eval("CategoryId") %>&id=<%#Eval("Id") %>">
						<%=GetGlobalResourceObject("Strings", "Detail") %>
					</a></li>
			</ItemTemplate>
		</asp:Repeater>
	</ul>
	<div class="othersTitle">
		<%=GetGlobalResourceObject("Strings", "OtherNews") %>
	</div>
	<ul class="othersList">
		<asp:Repeater ID="rptOtherNews" runat="server">
			<ItemTemplate>
				<li><a href="NewsDetailPage.aspx?t=N&tid=<%#Eval("CategoryId") %>&id=<%#Eval("Id") %>">
					<%#Eval("Title") %></a> <span>(<%#((DateTime)Eval("PostDate")).ToString("dd/MM/yyyy HH:mm")%>)</span>
				</li>
			</ItemTemplate>
		</asp:Repeater>
	</ul>

	<script type="text/javascript" language="javascript">
		function gotoLocalPage(link) {
			window.location.href = link;
		}
	</script>

</asp:Content>
